#ifndef DEMOOBJECT_H
#define DEMOOBJECT_H

#include <QObject>
#include <QEventLoop>

class DemoObject : public QObject
{
    Q_OBJECT
public:
    DemoObject(QObject* parent = Q_NULLPTR);

    void send_send_add_request(int a, int b);

public Q_SLOTS:
    void setVersion(const QString &version);
    int test_add(int a, int b);
    QString getVersion();

    void Call(int r);

Q_SIGNALS:
    int send_add_request(int a, int b);
    void call(int r);

private:
    QString m_version;
    QEventLoop *m_e;

};

#endif // DEMOOBJECT_H
